package com.appspot.web2stanza;

import java.io.*;
import java.util.logging.Logger;
import javax.servlet.http.*;

public class CleaningJob extends HttpServlet {

  public static final Logger log = Logger.getLogger(CleaningJob.class.getName());

  public void init() {
  }

  public void doGet(HttpServletRequest req, HttpServletResponse res)
      throws IOException {

    // start cleaning
    Web2Stanza w2s = new Web2Stanza();
    w2s.cleaning();

  }

  public void doPost(HttpServletRequest req, HttpServletResponse res)
      throws IOException {

    // start cleaning
    Web2Stanza w2s = new Web2Stanza();
    w2s.cleaning(req.getParameter("id"));

  }

  public void destroy() {
  }
}

